﻿@using MvcSample.Models;
@using MvcSample.Data.Core
@model StudentCreateVm
@{
    ViewData["Title"] = "Create";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>@ViewData["Title"]</h2>

<form  asp-controller="Home" asp-action="Create" method="post">
    <input asp-for="@Model.FirstName" /><span asp-validation-for="@Model.FirstName"></span>
    <input asp-for="@Model.LastName" /><span asp-validation-for="@Model.LastName"></span>
    <input asp-for="@Model.BirthDay" /><span asp-validation-for="@Model.BirthDay"></span>
    <select asp-for="@Model.Gender" asp-items="@Html.GetEnumSelectList<GenderEnum>()"></select><span asp-validation-for="@Model.Gender"></span>
    <button type="submit" class="btn btn-primary">Create</button>
</form>

